package com.gtt.pattern.structural.proxy;

/**
 * Proxy
 * 
 * @author 高甜甜(gao12581@sina.com)
 * @date 2011-3-31
 * 
 */
public class Proxy extends Subject {

	private Subject subject;

	public void setSubject(Subject subject) {
		this.subject = subject;
	}

	@Override
	public void request() {
		System.out
				.println("This is proxy executing before real subject request");
		subject.request();
		System.out
				.println("This is proxy executing after real subject request");
	}

}
